package lib

type Iterator struct {
	len   int
	index int
}

func (i *Iterator) HasNext() bool {
	if i == nil || i.len == 0 {
		return false
	}
	return i.index < i.len
}
